<?php

class questions extends CI_Controller {

    public function __construct() {
        parent::__construct();
        $this->load->model('questions_model');
    }

    public function display($type = '') {
        $data['questions'] = $this->questions_model->getQuestions($_SESSION['story_id']);
    //public function display($story) {
       // $data['questions'] = $this->questions_model->getQuestions($story);
        $data['type'] = $type;
        $this->load->view('questions', $data);
    }

}

?>
